// 手机号
export const ruleTelephone = (value) => {
  const reg1 =
    /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
  return reg1.test(value);
};

// 电话
export const ruleMobile = (value) => {
  const reg2 = /0\d{2,3}-\d{7,8}/;
  return reg2.test(value);
};
// 三级等保  8-12位字母+数字+特殊字符
export const rulePassword = (value) => {
  const reg =
    /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~`!@#$%^&*()_\-+={}[\];:'"<>?/.,\\|])[a-zA-Z\d~`!@#$%^&*()_\-+={}[\];:'"<>?/.,\\|]{8,20}$/;
  return reg.test(value);
};
